package com.lzh.order.client;

import com.lzh.commonutils.CourseInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 远程调用服务
 */
@Component
@FeignClient(name = "service-edu")
public interface CourseClient {
    /**
     * 根据id获取课程信息
     * @param courseId
     * @return
     */
    @GetMapping("/edu/course/getCourseByOrder")
    public CourseInfo getCourseByOrder(@RequestParam("courseId") String courseId);
}
